/*
 * the codes was writted by taing, but you can copy or moidfy it
 */

package com.taing.autosql.mapper;


import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;

/**
 * @Author tianyi
 * @Description 一个通用方法，将List<map<String,Object>>统一转换成List<Entity>
 * @Date 2023 - 02 - 05
 **/

public interface IMapList2EntityMapper<T> {
    /**
     * 将list<Map>转换成list<entity>
     *
     * @param mapList
     * @param clz
     * @return
     * @throws InstantiationException
     * @throws IllegalAccessException
     * @throws NoSuchMethodException
     * @throws InvocationTargetException
     * @throws NoSuchFieldException
     */
    public List<T> modelMap2List(List<Map<String, Object>> mapList, Class<T> clz) throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException, NoSuchFieldException;

}
